import Ax from '../api';

export default {
  componentLogicRuleAdd: (param = {}) => Ax.post(`/componentLogicRule/add`, param),
  componentLogicRuleEdit: (param = {}) => Ax.post(`/componentLogicRule/edit`, param),
  componentLogicRuleDelete: (query) => Ax.delete(`/componentLogicRule/delete?_id=${query._id}`),
  componentLogicRuleList: (query) => Ax.get(`/componentLogicRule/list?componentId=${query.componentId}`),
};